package cmo.neutech.day09.Cola;

import java.util.Scanner;

public class TestCompany {
    public static void main(String[] args) {
        Scanner update =new Scanner(System.in);
        ColaRmployee[] colaRmployees = new ColaRmployee[5];
        colaRmployees[0] = new SalariedEmployee("张三",4,3000);
        colaRmployees[1] = new HourlyEmployee("李四",6,20,170);
        colaRmployees[2] = new HourlyEmployee("王五",5,20,150);
        colaRmployees[3] = new SalesEmployee("张六",10,10000,0.06);
        colaRmployees[4] = new SalesEmployee("魏七",1,8000,0.05);

        Company company = new Company();
        int cha = update.nextInt();
        System.out.print("查询"+cha+"月的工资");
        company.company(colaRmployees,cha);
    }
}
